<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh-cn" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="zh-cn" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh-cn">
<!--<![endif]-->
<head>
    <meta charset="utf-8" />
    <title>{$meta_title}</title>
    <meta name="keywords" content="{$meta_keywords}" />
    <meta name="description" content="{$meta_description}" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <link href="{THEME_PATH}admin/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="{THEME_PATH}admin/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="{HOME_THEME_PATH}mobile/css/home.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">var memberpath = "{MEMBER_PATH}"</script>
    <script src="{THEME_PATH}admin/global/plugins/jquery.min.js" type="text/javascript"></script>
    <script src="{THEME_PATH}admin/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="{THEME_PATH}admin/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
    <script src="{SITE_PC}config/language/{SITE_LANGUAGE}/lang.js" type="text/javascript"></script>
    <script src="{THEME_PATH}js/layer/layer.js" type="text/javascript"></script>
    <script src="{THEME_PATH}js/cms.js" type="text/javascript"></script>
    <script src="{HOME_THEME_PATH}mobile/scripts/home.js" type="text/javascript"></script>

</head>

<body class="page-container-bg-solid">
<div class="page-header">

    <div class="page-header-top">
        <div class="container-fluid">
            {if $top_name}
            <?php $tburl = $_SERVER['HTTP_REFERER']; !$tburl && defined('MODULE_URL') && $tburl = MODULE_URL; !$tburl && $tburl = SITE_URL; ?>
            <a href="{$tburl}" class="menu-toggler2"> <i class="fa fa-angle-left"></i></a>
            <div class="page-title">
                {$top_name}
            </div>
            {else}
            <div class="page-logo">
                <a href="/">
                    <img src="{HOME_THEME_PATH}mobile/img/logo.png" class="logo-default">
                </a>
            </div>
            {/if}
            <a href="javascript:;" class="menu-toggler"> <i class="fa fa-bars"></i> </a>
        </div>
    </div>
    <!-- END HEADER TOP -->
    <!-- BEGIN HEADER MENU -->
    <div class="page-header-menu">
        <div class="container-fluid">
            <!-- BEGIN HEADER SEARCH BOX -->
            <form class="search-form" action="/index.php" method="get">
                <input type="hidden" name="c" value="api">
                <input type="hidden" name="m" value="search">
                <input type="hidden" name="dir" id="dr_search_module_dir" >
                <div class="input-group">
                    <div class="input-group-btn btn-group">
                        <button id="dr_search_module_name" type="button" class="btn default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                            <i class="fa fa-angle-down"></i>
                        </button>
                        <ul class="dropdown-menu">
                            <!--这是来列出全部可以搜索的内容模块-->
                            {php $top_search=[];}
                            {cache name=module}
                            {if !$t.setting.search.close}
                            {php !$top_search && $top_search=$t;}
                            <li><a href="javascript:dr_search_module_select('{$t.dirname}', '{$t.name}');"> {$t.name} </a></li>
                            {/if}
                            {/cache}
                        </ul>
                    </div>
                    <input type="text" placeholder="搜索内容..." name="keyword" class="fc-search-keyword form-control">
                    <div class="input-group-btn search-bttn">
                        <button class="btn default" type="submit"> <i class="fa fa-search"></i> </button>
                    </div>
                </div>
                <script>
                    // 这段js是用来执行搜索的
                    function dr_search_module_select(dir, name) {
                        $("#dr_search_module_dir").val(dir);
                        $("#dr_search_module_name").html(name+' <i class="fa fa-angle-down"></i>');
                    }
                    dr_search_module_select('{php echo defined('MOD_DIR') ? MOD_DIR : $top_search.dirname}', '{php echo defined('MODULE_NAME') ? MODULE_NAME : $top_search.name}');
                </script>
            </form>

            <div class="hor-menu  ">

                <ul class="nav navbar-nav">
                    <li id="dr_nav_0" class="menu-dropdown classic-menu-dropdown {if $indexc}active{/if}">
                        <a href="{SITE_URL}" title="{SITE_TITLE}">首页</a>
                    </li>


                    <!--第一层：调用栏目-->
                    {category module=share pid=0}
                    <li class="menu-dropdown classic-menu-dropdown {if IS_SHARE && $catid && in_array($catid, $t.catids)} active{/if}">
                        {if $t.child}
                        <a href="javascript:;" title="{$t.name}">{$t.name}</a>
                        <ul class="dropdown-menu pull-left">
                            {category module=share pid=$t.id return=t2}
                            <li class="{if $t2.child} dropdown-submenu{/if} {if IS_SHARE && $catid && in_array($catid, $t2.catids)} active{/if}">
                                {if $t2.child}
                                <a href="javascript:;" class="nav-link nav-toggle " title="{$t2.name}">
                                    {$t2.name}
                                </a>
                                <ul class="dropdown-menu pull-left">
                                    {category module=share pid=$t2.id return=t3}
                                    <li class="{if IS_SHARE && $catid && in_array($catid, $t3.catids)} active{/if}">
                                        <a href="{$t3.url}" title="{$t3.name}">
                                            {$t3.name}
                                        </a>
                                    </li>
                                    {/category}
                                </ul>
                                {else}
                                <a href="{$t2.url}" class="nav-link nav-toggle " title="{$t2.name}">
                                    {$t2.name}
                                </a>
                                {/if}
                            </li>
                            {/category}
                        </ul>
                        {else}
                        <a href="{$t.url}" title="{$t.name}">{$t.name}</a>
                        {/if}
                    </li>
                    {/category}


                    <!--调用所有独立模块-->
                    {cache name=module}
                    {if !$t.share}
                    <li class="menu-dropdown classic-menu-dropdown {if (MOD_DIR && $t.dirname==MOD_DIR)}active{/if}">
                        <a href="{$t.url}" title="{$t.title}">{$t.name}</a>
                    </li>
                    {/if}
                    {/cache}

                </ul>

            </div>
            <!-- END MEGA MENU -->
        </div>
    </div>
    <!-- END HEADER MENU -->
</div>